import request from '@/utils/request'

/* 员工列表分页*/
export function employee_page(data) {
  return request({
    url: '/base-data/employee/page',
    method: 'post',
    data: data
  })
}

/* 新增员工*/
export function employee_save(data) {
  return request({
    url: '/base-data/employee/save',
    method: 'post',
    data: data
  })
}

/* 修改员工*/
export function employee_update(data) {
  return request({
    url: '/base-data/employee/update',
    method: 'post',
    data: data
  })
}

/* 删除员工*/
export function employee_delete(data) {
  return request({
    url: '/base-data/employee/delete',
    method: 'post',
    data: data
  })
}

/* 根据员工名称查询*/
export function employee_list(data) {
  return request({
    url: '/base-data/employee/list',
    method: 'post',
    data: data
  })
}

/* 根据id查询*/
export function employee_detail(data) {
  return request({
    url: '/base-data/employee/' + data,
    method: 'post'
  })
}
